package com.techsoul.module.pms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialInLocationSaveParam;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialInLocationSearchParam;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialInventoryLendingSaveParam;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialInLocationApiVo;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialInLocationVo;

import java.util.List;

/**
 * 货区货物清单 Service接口
 * 
 * @author liuen
 * @date 2022-01-25
 */
public interface ITbWmsMaterialInLocationService {

    /**
     * 新增
     * @param params
     * @return
     */
    String insert(TbWmsMaterialInLocationSaveParam params);
    double countBySkuCode(String skuCode);
    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(String id);

    /**
     * 批量删除
     * @param idList
     */
    Integer batchDelete(List<String> idList);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer update(TbWmsMaterialInLocationSaveParam params);

    /**
     * 详情
     * @param id
     * @return
     */
    TbWmsMaterialInLocationVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<TbWmsMaterialInLocationVo> findAll(TbWmsMaterialInLocationSearchParam params);

    List<TbWmsMaterialInLocationApiVo> queryDataInfoList(TbWmsMaterialInLocationApiVo params);
    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<TbWmsMaterialInLocationVo> findAll(TbWmsMaterialInLocationSearchParam params, Integer current, Integer pageSize);

    Integer inventoryLending(TbWmsMaterialInventoryLendingSaveParam params);

    Integer returnCar(TbWmsMaterialInventoryLendingSaveParam params);
}
